<?php /* Smarty version 2.6.18, created on 2016-12-09 13:05:29
         compiled from achieve/m.achieve.list.tpl.php */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "m.index.header.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<!--头部 end--> 
<!--主体部分-->
<div class="container" style="margin-top:70px;">
  <div class="row" style="margin-top:10px;">
    <div class="col-sm-12 distance" >
      <div class="form-group">
        <div class="col-sm-10">
          <p>
			  <a href="index.php?a=achieve.list&type=1" <?php if ($this->_tpl_vars['type'] == 1): ?> class="btn btn-success" <?php else: ?> class="btn btn-default" <?php endif; ?>>集体获奖</a>
			  <a href="index.php?a=achieve.list&type=2" <?php if ($this->_tpl_vars['type'] == 2): ?> class="btn btn-success" <?php else: ?> class="btn btn-default" <?php endif; ?>>教师获奖</a>
		 </p>
		 <p>
			  <a href="index.php?a=achieve.list&type=3" <?php if ($this->_tpl_vars['type'] == 3): ?> class="btn btn-success" <?php else: ?> class="btn btn-default" <?php endif; ?>>课件获奖</a>
			  <a href="index.php?a=achieve.list&type=4" <?php if ($this->_tpl_vars['type'] == 4): ?> class="btn btn-success" <?php else: ?> class="btn btn-default" <?php endif; ?>>课例获奖</a>
		 </p>
		 <p>
			  <a href="index.php?a=achieve.list&type=5" <?php if ($this->_tpl_vars['type'] == 5): ?> class="btn btn-success" <?php else: ?> class="btn btn-default" <?php endif; ?>>学生获奖</a>
			  <a href="index.php?a=achieve.list&type=7" <?php if ($this->_tpl_vars['type'] == 7): ?> class="btn btn-success" <?php else: ?> class="btn btn-default" <?php endif; ?>>指导教师奖</a>
		 </p>
		 <p>
			  <a href="index.php?a=achieve.list&type=6" <?php if ($this->_tpl_vars['type'] == 6): ?> class="btn btn-success" <?php else: ?> class="btn btn-default" <?php endif; ?>>论文著作</a>
		</p>
        </div>
      </div>
    </div>
  </div>

  <div class="row" style="margin-right:10%;">
    <div  class="col-xs-sm  text-right" > <a class="btn btn-primary" href="index.php?a=achieve.add&type=<?php echo $this->_tpl_vars['type']; ?>
" style="width:30%">增加</a></div>
  </div>
  <!--row  end-->
 <form name="myform" action="" method="post"> 
  <div class="row" style="margin-top:10px;">
    <div class="col-sm-12 distance" >
      <div class="form-group">
        <label for="inputEmail3" class="col-sm-2 control-label">级别:</label>
        <div class="col-sm-10">
          <select class="form-control" name="prizelv">
			  <option value="all"> 全部 </option>
			  <?php $_from = $this->_tpl_vars['prizelv']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
			  <option value="<?php echo $this->_tpl_vars['value']['prizelv_id']; ?>
" <?php if ($this->_tpl_vars['lv'] == $this->_tpl_vars['value']['prizelv_id']): ?>selected<?php endif; ?>> <?php echo $this->_tpl_vars['value']['prizelv_name']; ?>
</option>
			  <?php endforeach; endif; unset($_from); ?>
		  </select>
        </div>
      </div>
    </div>
    <div class="col-sm-12 distance" >
      <div class="form-group">
        <label for="inputEmail3" class="col-sm-2 control-label">获奖名次:</label>
        <div class="col-sm-10">
          <select class="form-control" name="prize">
			  <option value="all"> 全部 </option>
			  <?php $_from = $this->_tpl_vars['prize']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
			  <option value="<?php echo $this->_tpl_vars['value']['prize_id']; ?>
" <?php if ($this->_tpl_vars['rank'] == $this->_tpl_vars['value']['prize_id']): ?>selected<?php endif; ?>> <?php echo $this->_tpl_vars['value']['prize_name']; ?>
</option>
			  <?php endforeach; endif; unset($_from); ?>
		  </select>
        </div>
      </div>
    </div>
    <div class="col-sm-12 distance">
      <div class="form-group">
        <label for="" class="col-sm-2 control-label">开始时间:</label>
        <div class="col-sm-10">
          <input type="text" class="form-control" value="<?php echo $this->_tpl_vars['from']; ?>
" id="from" name="from">
        </div>
      </div>
    </div>
     <div class="col-sm-12 distance">
      <div class="form-group">
        <label for="" class="col-sm-2 control-label">结束时间:</label>
        <div class="col-sm-10">
          <input type="text" class="form-control" value="<?php echo $this->_tpl_vars['to']; ?>
" id="to" name="to">
        </div>
      </div>
    </div>
    <div class="col-xs-12 distance">
      <div class="form-group  text-center" style="padding-top:0px;">
        <button type="submit" class="btn btn-success absolutely ">搜索</button>
      </div>
    </div>
  </div>
  <div class="row" style="margin-top:15px;margin-left:1px; margin-right:1px;">
  <?php $_from = $this->_tpl_vars['achieve_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
    <table class="table table-striped table-bordered text-center"  id="middles">
	<?php if ($this->_tpl_vars['type'] < 6): ?>
      <tr>
        <td>获奖名称</td>
        <td colspan="2"><?php echo $this->_tpl_vars['value']['achieve_name']; ?>
</td>
      </tr>
      <tr>
        <td>主办单位</td>
        <td colspan="2"><?php echo $this->_tpl_vars['value']['achieve_unit']; ?>
</td>
      </tr>
      <tr>
        <td>级别</td>
        <td colspan="2"><?php echo $this->_tpl_vars['value']['achieve_lv']; ?>
</td>
      </tr>
       <tr>
        <td>名次</td>
        <td colspan="2"><?php echo $this->_tpl_vars['value']['achieve_rank']; ?>
</td>
      </tr>
       <tr>
        <td>获奖者</td>
        <td colspan="2"><?php echo $this->_tpl_vars['value']['achieve_owner']; ?>
</td>
      </tr>
       <tr>
        <td>获奖时间</td>
        <td colspan="2"><?php echo $this->_tpl_vars['value']['achieve_time']; ?>
</td>
      </tr>
	  <?php if ($this->_tpl_vars['type'] == 5): ?>
	  <tr>
        <td>第一指导老师</td>
        <td colspan="2"><?php echo $this->_tpl_vars['value']['achieve_teach']; ?>
</td>
      </tr>
	  <tr>
        <td>其他指导老师</td>
        <td colspan="2"><?php echo $this->_tpl_vars['value']['achieve_teachers']; ?>
</td>
      </tr>
	  <?php endif; ?>
       <tr>
        <td>备注</td>
        <td colspan="2"><?php echo $this->_tpl_vars['value']['achieve_remark']; ?>
</td>
      </tr>
       <tr>
        <td>附件</td>
        <td colspan="2">
			<a href="upload/achieve_file/<?php echo $this->_tpl_vars['value']['achieve_file']; ?>
" download="" style="color:#666">附件</a>
		</td>
      </tr>
      <tr>
        <td>操作</td>
        <td><a type="button" class="btn btn btn-warning" href="index.php?a=achieve.info&type=<?php echo $this->_tpl_vars['type']; ?>
&achieve_id=<?php echo $this->_tpl_vars['value']['achieve_id']; ?>
">查看</a></td>
        <td><a type="button" class="btn btn-danger" href="index.php?a=achieve.update&type=<?php echo $this->_tpl_vars['type']; ?>
&achieve_id=<?php echo $this->_tpl_vars['value']['achieve_id']; ?>
">修改</a></td>
      </tr>
    <?php endif; ?>
	<?php if ($this->_tpl_vars['type'] == 6): ?>
	  <tr>
        <td>获奖名称</td>
        <td colspan="2"><?php echo $this->_tpl_vars['value']['achieve_name']; ?>
</td>
      </tr>
	  <tr>
        <td>出版社</td>
        <td colspan="2"><?php echo $this->_tpl_vars['value']['achieve_publish']; ?>
</td>
      </tr>
	  <tr>
        <td>书号</td>
        <td colspan="2"><?php echo $this->_tpl_vars['value']['achieve_bookno']; ?>
</td>
      </tr>
	  <tr>
        <td>所在页</td>
        <td colspan="2"><?php echo $this->_tpl_vars['value']['achieve_page']; ?>
</td>
      </tr>
	  <tr>
        <td>级别</td>
        <td colspan="2"><?php echo $this->_tpl_vars['value']['achieve_lv']; ?>
</td>
      </tr>
	  <tr>
        <td>发表者</td>
        <td colspan="2"><?php echo $this->_tpl_vars['value']['achieve_owner']; ?>
</td>
      </tr>
	  <tr>
        <td>出版时间</td>
        <td colspan="2"><?php echo $this->_tpl_vars['value']['achieve_time']; ?>
</td>
      </tr>
	  <tr>
        <td>备注</td>
        <td colspan="2"><?php echo $this->_tpl_vars['value']['achieve_remark']; ?>
</td>
      </tr>
	  <tr>
        <td>附件</td>
        <td colspan="2">
			<a href="index.php?a=achieve.file&achieve_id=<?php echo $this->_tpl_vars['value']['achieve_id']; ?>
&fname=<?php echo $this->_tpl_vars['value']['achieve_file']; ?>
" style="color:#666"><?php echo $this->_tpl_vars['value']['achieve_fname']; ?>
</a>
		</td>
      </tr>
	  <tr>
        <td>操作</td>
        <td colspan="2">
			<td><a type="button" class="btn btn btn-warning" href="index.php?a=achieve.info&type=<?php echo $this->_tpl_vars['type']; ?>
&achieve_id=<?php echo $this->_tpl_vars['value']['achieve_id']; ?>
">查看</a></td>
			<td><a type="button" class="btn btn-danger" href="index.php?a=achieve.update&type=<?php echo $this->_tpl_vars['type']; ?>
&achieve_id=<?php echo $this->_tpl_vars['value']['achieve_id']; ?>
">修改</a></td>
		</td>
      </tr>
	<?php endif; ?>
	<?php if ($this->_tpl_vars['type'] == 7): ?>
	  <tr>
        <td>获奖名称</td>
        <td colspan="2"><?php echo $this->_tpl_vars['value']['achieve_name']; ?>
</td>
      </tr>
	  <tr>
        <td>获奖者</td>
        <td colspan="2"><?php echo $this->_tpl_vars['value']['achieve_owner']; ?>
</td>
      </tr>
	  <tr>
        <td>获奖级别</td>
        <td colspan="2"><?php echo $this->_tpl_vars['value']['achieve_lv']; ?>
</td>
      </tr>
	  <tr>
        <td>第一指导老师</td>
        <td colspan="2"><?php echo $this->_tpl_vars['value']['achieve_teach']; ?>
</td>
      </tr>
	  <tr>
        <td>本人排名</td>
        <td colspan="2"><?php echo $this->_tpl_vars['value']['achieve_trank']; ?>
</td>
      </tr>
	  <tr>
        <td>授奖单位</td>
        <td colspan="2"><?php echo $this->_tpl_vars['value']['achieve_unit']; ?>
</td>
      </tr>
	  <tr>
        <td>获奖时间</td>
        <td colspan="2"><?php echo $this->_tpl_vars['value']['achieve_time']; ?>
</td>
      </tr>
	  <tr>
        <td>备注</td>
        <td colspan="2"><?php echo $this->_tpl_vars['value']['achieve_remark']; ?>
</td>
      </tr>
	  <tr>
        <td>附件</td>
        <td colspan="2">
			<a href="index.php?a=achieve.file&achieve_id=<?php echo $this->_tpl_vars['value']['achieve_id']; ?>
&fname=<?php echo $this->_tpl_vars['value']['achieve_file']; ?>
" style="color:#666"><?php echo $this->_tpl_vars['value']['achieve_fname']; ?>
</a>
		</td>
      </tr>
	  <tr>
        <td>操作</td>
        <td colspan="2">
			<td><a type="button" class="btn btn btn-warning" href="index.php?a=achieve.info&type=<?php echo $this->_tpl_vars['type']; ?>
&achieve_id=<?php echo $this->_tpl_vars['value']['achieve_id']; ?>
">查看</a></td>
			<td><a type="button" class="btn btn-danger" href="index.php?a=achieve.update&type=<?php echo $this->_tpl_vars['type']; ?>
&achieve_id=<?php echo $this->_tpl_vars['value']['achieve_id']; ?>
">修改</a></td>
		</td>
      </tr>
	<?php endif; ?>
    </table>
    
	<?php endforeach; endif; unset($_from); ?>
  </div>
</div>
<!--container  end--> 
<!--主体部分  end--> 
<!--底部-->
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "m.index.footer.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<script>
    $(function() {
        $( "#from" ).datepicker({
            defaultDate: "+1w",
            changeMonth: true,
            changeYear: true,
            numberOfMonths:1,
            onClose: function( selectedDate ) {
                $( "#to" ).datepicker( "option", "minDate", selectedDate );
            }
        });
        $( "#to" ).datepicker({
            defaultDate: "+1w",
            changeMonth: true,
            changeYear: true,
            numberOfMonths:1,
            onClose: function( selectedDate ) {
                $( "#from" ).datepicker( "option", "maxDate", selectedDate );
            }
        });
    });
</script>
